#pragma once

class AreaDialog : public Singleton<AreaDialog>
{
	Dialog* m_dialog;
	void LoadEntryProc(UIButton<AreaDialog>*);
	void SaveEntryProc(UIButton<AreaDialog>*);

	EditBox* m_entryBox, *m_nameBox, *m_flagBox, *m_parentBox, *m_mapBox, *m_levelBox, *m_saveBox;

public:
	AreaDialog();
	void Update();

	void Show()
	{
		m_dialog->m_visible = true;
	}

	void Hide()
	{
		m_dialog->m_visible = false;
	}

	void Toggle()
	{
		m_dialog->m_visible = !m_dialog->m_visible;
	}
};

#define sAreaDialog (*AreaDialog::GetInstance())